Skip to content

ci(publish): announce a published testing release to subscribers - #187

Draft
WolfangAukang wants to merge 1 commit into
testingfrom
FEATURE-announce-published-release
Draft

WolfangAukang wants to merge 1 commit into
testingfrom
FEATURE-announce-published-release

Conversation

@WolfangAukang

Copy link
Copy Markdown
Contributor

Why

Other repositories need to act on a testing release once it is published and has passed the scan, without polling Docker Hub for it. A tag on Docker Hub is not enough: the tags are pushed before the Grype scan runs.

What

publish-testing.yml gets a notify-subscribers job. It sends a release-published repository_dispatch with {version, tag} to each repository that follows releases.

  • Same gate as promote: it needs scan-minimal, so a release that fails Grype is never announced, and it is skipped on a dry run.
  • Token: a GitHub App installation token minted per run, limited to the subscribing repositories with contents: write (what repository_dispatch needs). actions/create-github-app-token is pinned to the v3.3.0 commit. The job itself has permissions: {}.
  • Configuration is secret: the App and the list of repositories come from secrets in the testing Environment, which only the testing branch can use.
  • Safe to merge before it is configured: without RELEASE_NOTIFY_CLIENT_ID the job logs a notice and does nothing.

Configuration

Secrets in the testing Environment:

  • RELEASE_NOTIFY_CLIENT_ID: the GitHub App's client id
  • RELEASE_NOTIFY_PRIVATE_KEY: the App's private key
  • RELEASE_NOTIFY_REPOSITORIES: comma-separated repository names in this org

Testing

  • actionlint is clean.
  • Not yet run: the first real publish after the secrets are set. Check that notify-subscribers succeeds.

🤖 Generated with Claude Code

After the Grype gate that already guards the promote, send a release-published
repository_dispatch with the version and tag to the repositories that follow
releases. The repositories and the GitHub App that signs the token come from
secrets in the testing environment; the job is a no-op until they are set.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant